﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors.Repository;
using Ahi.Controller;
using Ahi.Entity;

namespace Ahi.Base
{
    public partial class PropertyGridForm : Form
    {
        public PropertyGridForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            RepositoryItemLookUpEdit adresler = new RepositoryItemLookUpEdit();
            adresler.SetEnumList<Ahi.Entity.Enums.AdresTipi>();
            propertyGridControl1.DefaultEditors.Add(typeof(Ahi.Entity.Enums.AdresTipi), adresler);

            UyeEntity er = new UyeEntity();
            propertyGridControl1.SelectedObject = er;
        }
    }
}
